package com.nuc.bigdata.orm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nuc.bigdata.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

/**
 * 新闻评论实体类
 * @author JackLuo
 * @date 2019/11/19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "news_comments")
public class NewsComments extends BaseEntity {

    @TableId(type = IdType.AUTO)
    private Long id;

    @Length(max = 100)
    private String commentId;

    @Length(max = 100)
    private String newsId;

    @Length(max = 200)
    private String comment;

    @TableField(exist = false)
    private Long commentLike;
}
